/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 描述: 案件附件表-trj case_appendix_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年02月15日
 */
@Data
@Table(name = "upcase.case_appendix_record")
public class CaseAppendixRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件主键
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件阶段名称
     */
    @Column(name = "case_stage_name")
    private String caseStageName;

    /**
     * 案件阶段编码
     */
    @Column(name = "case_stage_code")
    private String caseStageCode;

    /**
     * 案件环节名称
     */
    @Column(name = "case_link_name")
    private String caseLinkName;

    /**
     * 案件环节编码
     */
    @Column(name = "case_link_code")
    private String caseLinkCode;

    /**
     * 附件类型id（数据字典ATTACHMENT_TYPE）
     */
    @Column(name = "appendix_type_id")
    private String appendixTypeId;

    /**
     * 附件地址
     */
    @Column(name = "appendix_url")
    private String appendixUrl;

    /**
     * 上传人姓名
     */
    @Column(name = "upload_user_name")
    private String uploadUserName;

    /**
     * 上传人id
     */
    @Column(name = "upload_user_id")
    private String uploadUserId;

    /**
     * 附件名称
     */
    @Column(name = "appendix_name")
    private String appendixName;

    /**
     * 关联文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 证据类型id(数据字典EVIDENCE_TYPE)
     */
    @Column(name = "evidence_type_id")
    private String evidenceTypeId;

    /**
     * 上传时间
     */
    @Column(name = "upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime uploadTime;

    /**
     * 附件名称(前缀)
     */
    @Column(name = "appendix_name_prefix")
    private String appendixNamePrefix;
    /**
     * 附件名称(后缀)
     */
    @Column(name = "appendix_name_suffix")
    private String appendixNameSuffix;

    /**
     * 是否删除（0-否/1-是）
     */
    @Column(name = "is_delete")
    private String isDelete;
    /**
     * 案由表id
     */
    @Column(name = "case_reason_id")
    private String caseReasonId;
    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;
    /**
     * 附件状态 1-有效 3-撤回
     */
    @Column(name = "appendix_status")
    private String appendixStatus;
    /**
     * 是否立案材料列表(0-否 1-是)
     */
    @Column(name = "is_material")
    private String isMaterial;
    /**
     * 附件备注信息
     */
    @Column(name = "appendix_remark")
    private String appendixRemark;
    /**
     * 上传类型 1-附件管理上传 2-其他类型上传
     */
    @Column(name = "upload_type")
    private String uploadType;
    /**
     * 排序
     */
    @Column(name = "sort")
    private String sort;

    /**
     * 是否证据中心
     */
    @Column(name = "is_evidence_center")
    private Boolean isEvidenceCenter;

    /**
     * 检查-证据uid
     */
    @Column(name = "evidence_uid")
    private String evidenceUid;

    /**
     * 检查-证据类型
     */
    @Column(name = "evidence_link_type")
    private String evidenceLinkType;

    private static final long serialVersionUID = 1L;


}
